package com.nefu.editor.service;

import com.nefu.editor.common.EdiException;
import com.nefu.editor.core.model.User;
import com.nefu.editor.core.model.Vo.UserVo;

import java.util.Map;

/**
 * @author chenchenT
 * @date : 18-11-12
 * @since : java 8
 */
public interface UserService {

    /**
     * 用户登陆
     *
     * @param user
     * @return
     * @throws EdiException
     */
    Map<String, Object> postLogin(User user) throws EdiException;

    /**
     * 修改密码
     *
     * @param userVo 参数集
     * @return 是否成功
     * @throws EdiException 修改失败原因
     */
    boolean changePassword(UserVo userVo) throws EdiException;

    /**
     *
     * 注册新用户
     * @param user
     * @return 是否成功 true 成功 || false 失败
     * @throws EdiException 修改失败原因
     */
    boolean register(User user) throws EdiException ;

}
